package ssw.game;

import java.util.Collection;
import java.util.SortedSet;

public class GameState {
	private final SortedSet<String> remainingWords;
	public SortedSet<String> getRemainingWords()  {
		return remainingWords;
	}
	
	private final Collection<String> tiles;
	public Collection<String> getTiles()  {
		return tiles;
	}
	
	private final SortedSet<String> answers;
	public SortedSet<String> getAnswers()  {
		return answers;
	}
	
	public GameState(Collection<String> tiles, SortedSet<String> remainingWords, SortedSet<String> answers)  {
		super();
		this.remainingWords = remainingWords;
		this.tiles = tiles;
		this.answers = answers;
	}
	
	public final boolean isDone()  {
		return getRemainingWords().isEmpty();
	}
}
